<?php

class App_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
{
	public function preDispatch( Zend_Controller_Request_Abstract $request )
	{
		$viewRenderer	= Zend_Controller_Action_HelperBroker::getExistingHelper( "ViewRenderer" );
		$viewRenderer->initView();
		$view			= $viewRenderer->view;
		$dataMenu		= new Zend_Config_Ini ( APPLICATION_PATH . "/configs/menu.ini" );
		$navigation		= new Zend_Navigation( $dataMenu );
		$view->navigation( $navigation );
	}
}